<template>
<div class="loginPage">
  <img class="bg1" src="~@/assets/img/login/bg.png" alt="">
  <div class="main">
    <div class="title"><span>欢迎注册！</span></div>
    <div class="h60"></div>
    <div class="input_div">
      <img class="i_img" src="~@/assets/img/login/people.png" alt="">
      <input class="input" type="tel" placeholder="请输入手机号" v-model="form.mobile">
    </div>
    <div class="h20"></div>
    <div class="input_div">
      <img class="i_img" src="~@/assets/img/login/pwd.png" alt="">
      <input class="input" type="password" placeholder="请输入密码" v-model="form.password">
    </div>
    <div class="h20"></div>
    <div class="input_div">
      <img class="i_img" src="~@/assets/img/login/yq_code.png" alt="">
      <input class="input" type="text" placeholder="请输入邀请码" v-model="form.code">
    </div>
    <div class="h50"></div>
    <div class="mt15 mb20 login_btn" >注 册</div>
    <div class="choose_div flex_ac flex_center">
      <img @click="isOk=!isOk" v-if="isOk" src="~@/assets/img/login/choose.png" alt="">
      <div @click="isOk=!isOk" class="choose" v-else></div>
      我已阅读，同意接受<span>《用户服务协议》</span>
    </div>
  </div>
  <div class="bottom_text">
    已有账号了? <span @click="toPage('login')"> 直接登录</span>
  </div>
</div>
</template>
<script>
// import {} from "@/api/api.js";
export default {
  data() {
    return {
      form: {
        mobile: '',
        password: '',
        code:''
      },
      isOk: false,
    };
  },
  created() {
   
  },
  watch: {
   
  },
  beforeDestroy() {},
  mounted() {
    
  },
  methods: {
    toPage(url){
      this.$router.push(url)
    },
    isValidPhoneNumber(phoneNumber) {
      return /^1\d{10}$/.test(phoneNumber);
    },
  },
};
</script>
<style lang="scss" scoped>
.loginPage{
  position: relative;
  height: 100%;
  .bg1{
    position: absolute;
    right: 0;
    top:0;
    width: 175px;
    height: 140px;

  }
  .main{
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-60%);
  }
  .title{
    margin-left: 30px;
    font-size: 24px;
    color: #1D1E2C;
    position: relative;
    span{
      position: relative;
      z-index: 10;
    }
    &::after{
      content: 'SIGN UP';
      position: absolute;
      left: -34px;
      bottom: -12px;
      font-size: 72px;
      color: #F7F7FB;
    }
  }
  .input_div{
    margin: 0 40px;
    position: relative;
    .i_img{
      position: absolute;
      height: 13px;
      width: 13px;
      left: 9px;
      top: 17px;
    }
    .input{
      width: calc(100% - 34px);
      height: 45px;
      background: #FFFFFF;
      border-radius: 5px;
      border: 1px solid #CCCCCC;
      padding: 0 0 0 30px;
      font-size: 14px;
    }
    .i_small{
      width: 180px;
      margin-right: 10px;
    }
    .code_div{
      width: 100px;
      height: 45px;
      background: linear-gradient(-62deg, #FA8A26, #FFA656);
      border-radius: 5px;
      line-height: 45px;
      text-align: center;
      font-size: 14px;
      color: #FFFFFF;
    }
    .code_div_a{
      background: #E6E6E6;
      box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.28);
      color: #999999;
    }
    input[type=text]:focus{ border: 1px solid #FA8A26; }
  }
}
.text{
  margin: 0 60px 0 auto;
  font-size: 12px;
  color: #666666;
  width: fit-content;
}
.login_btn{
  margin: 0 40px;
  height: 44px;
  background: linear-gradient(-62deg, #FA8A26, #FFA656);
  border-radius: 21px;
  font-size: 18px;
  color: #FFFFFF;
  line-height: 44px;
  text-align: center;
}

.choose_div{
  img{
    width: 11px;
    height: 11px;
    margin-right: 6px;
  }
  .choose{
    height: 10px;
    width: 10px;
    border-radius: 5px;
    border: 1px solid #999;
    margin-right: 6px;
  }
  font-size: 11px;
  color: #9A9A9A;
  span{
    color: #FA8A26;
  }
}
.bottom_text{
  position: absolute;
  width: 100%;
  text-align: center;
  bottom: 60px;
  left: 0;
  font-size: 13px;
  color: #666666;
  span{
    color: #FA8A26;
  }
}
</style>
